﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace System.Models.Models
{
    /// <summary>
    /// 在线调查结果信息表
    /// </summary>
    [Table("T_Onlin_Survey_Result")]
    public class OnlinSurveyResult:BaseEntity
    {
        /// <summary>
        /// 调查Id
        /// </summary>
        [ForeignKey(nameof(onlinSurveyId))]
        public int SurveyID { get; set; }
        public OnlinSurvey onlinSurveyId{ get; set; }

        /// <summary>
        /// 调查结果
        /// </summary>
        public bool SurveyResult { get; set; }
        /// <summary>
        /// 调查内容
        /// </summary>
        [Column(TypeName = "varchar"), StringLength(255)]
        public string SurveyText { get; set; }
        /// <summary>
        /// 填写人名称
        /// </summary>
        [Column(TypeName = "varchar"), StringLength(100)]
        public string SurveyUserName { get; set; }
    }
}
